package com.yeyks.consumer.service.impl;

import com.yeyks.consumer.dal.domain.UserBill;
import com.yeyks.consumer.dal.dao.UserBillMapper;
import com.yeyks.consumer.service.UserBillService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


/**
 * <p>
 * 用户推广佣金账单明细表 服务实现类
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Service
public class UserBillServiceImpl extends ServiceImpl<UserBillMapper, UserBill> implements UserBillService {

    //根据用户id和记录类型统计总数
    @Override
    public Long sumBillByUserIdAndType(Integer userId,Integer type){
        return baseMapper.sumBillByUserIdAndType(userId,type);
    }

}
